package com.woniuxy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.woniuxy.merchant.mapper")
@EnableFeignClients("com.woniu")
@EnableTransactionManagement
@ComponentScan(basePackages = {"com.woniuxy.merchant", "com.woniu.commons"})
public class MerchantStart {

    public static void main(String[] args){
        try {
            SpringApplication.run(MerchantStart.class, args);
            System.out.println("启动成功");
        } catch (Exception e) {
            e.printStackTrace();
        }
        }


}
